<foreach name="news" item="new">
    <div class="gdlist mt10">
        <div class="gdl">
            <a href="{:U('/search/'.strtolower($new['brand']['ename']))}">
                <img src="{$new.brand.image_url}" class="bord mals">
            </a>

            <h3 class="f14 ff9900">{$new.brand.name}</h3>

            <p>
                <span class="f14 f6" id="share" data-title="{$new.brand.ename}" data-summary="{$new.brand.name} 最新活动 上摩客网，线下更便宜" data-url="__SITE_URL__{:U('/search/'.$new['brand']['ename'])}">
                    <span class="share_txt">分享给好友:</span>
                    <a class="share share_tsina" data-webid="tsina"></a>
                    <a class="share share_tqq" data-webid="tqq"></a>
                    <a class="share share_renren" data-webid="renren"></a>

                    <a class="share share_qzone" data-webid="qzone"></a>
                </span>
            </p>
        </div>
        <div class="gdr mt10">
            <notempty name="new['dis']">
                <ul class="gdcre mb12">
                    <foreach name="new['dis']" item="d">
                        <li>
                            <a href="{:U('/discount/'.$d['itemid'])}">
                                <span class="gc1 yx">特卖</span>
                                <span class="gc2">{$d.mall.name}</span>
                                <span class="gc3 fbd">{$d.title}</span>
                                <span class="gc4">{$d.start_time|date="Y.m.d",###}-{$d.end_time|date="Y.m.d",###}</span>
                            </a>
                        </li>
                    </foreach>
                </ul>
            </notempty>
            <notempty name="new['news']">
                <ul class="mt10">
                    <foreach name="new['news']" item="n">
                        <li>
                            <a href="{$n.ad_url}" target="_blank">
                                <span class="gc5">{$n.mall.name}</span>
                                <span class="gc3 fbd">{$n.title}</span>
                                <span class="gc4">{$n.start_time|date='Y.m.d',###}-{$n.end_time|date='Y.m.d',###}</span>
                            </a>
                        </li>
                    </foreach>
                </ul>
            </notempty>
        </div>
        <div class="fn-clear"></div>
    </div>
</foreach>
<script type="text/javascript">
    $(".share").share();
</script>